import ArticleComment from "../model/ArticleComment";

export default {
  async add(data: { content: string; ArticleId: number }) {
    const result = await ArticleComment.create(data);
    return result;
  },
  async delete(id: number) {
    const result = await ArticleComment.destroy({ where: { id } });
    return result;
  },
};
